import request from '@/utils/request'



export function marketInfoAdd(data) { //市场信息-添加
  return request({
    url: '/project-management/api/market/info/add',
    method: 'post',
    data
  })
}
export function marketInfoEdit(data) { //市场信息-修改
  return request({
    url: '/project-management/api/market/info/edit',
    method: 'post',
    data
  })
}
export function marketInfoDetail(data) { //市场信息-详情
  return request({
    url: '/project-management/api/market/info/detail',
    method: 'post',
    data
  })
}


export function marketInfoList(data) { //市场信息查看-列表
  return request({
    url: '/project-management/api/market/info/page',
    method: 'post',
    data
  })
}

export function marketInfoDelete(data) { //市场信息查看-删除
  return request({
    url: '/project-management/api/market/info/del',
    method: 'post',
    data
  })
}

export function marketInfoExport(data) { //市场信息查看-导出
  return request({
    url: '/project-management/api/market/info/export',
    method: 'post',
    responseType: 'arraybuffer',
    data
  })
}


export function marketInfoRecall(data) { //市场信息查看-撤回
  return request({
    url: '/project-management/api/market/process/audit/recall',
    method: 'post',
    data
  })
}


export function marketInfoSubmit(data) { //市场信息查看-提交审核
  return request({
    url: '/project-management/api/market/process/audit/commit',
    method: 'post',
    data
  })
}
export function marketInfoSaveSubmit(data) { //市场信息查看-保存并提交
  return request({
    url: '/project-management/api/market/info/save',
    method: 'post',
    data
  })
}

export function marketInfoApprovalList(data) { //市场信息审批-列表
  return request({
    url: '/project-management/api/market/process/audit/info/page',
    method: 'post',
    data
  })
}

export function marketInfoApprovalHistory(data) { //市场信息审批-记录
  return request({
    url: '/project-management/api/market/process/audit/logs',
    method: 'post',
    data
  })
}

export function marketInfoAudit(data) { //市场信息审批-审批
  return request({
    url: '/project-management/api/market/process/audit/audit',
    method: 'post',
    data
  })
}